package com.mcmaster.android;

import java.io.FileNotFoundException;

import com.mcmaster.android.R.layout;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class Output extends Activity{

	//RawFileReader controller = new RawFileReader();
	
	public void onCreate(Bundle savedInstanceState)
	{
		Bundle extras = getIntent().getExtras();
		String name = extras.getString("name");
		String description = extras.getString("descrip");
		
		super.onCreate(savedInstanceState);
		setContentView(layout.output);
		
		Button scv_main_btn = (Button)findViewById(R.id.button2);
        scv_main_btn.setOnClickListener(new ButtonHandlerReturnMap());
        
        TextView buildingName = (TextView)findViewById(R.id.buildingName);
        TextView buildingDescription = (TextView)findViewById(R.id.buildingDescription);
        
        buildingName.setText(name);
        buildingDescription.setText(description);
	}
	
	private class ButtonHandlerReturnMap implements View.OnClickListener {
	    public void onClick(View v) {
	    	handleReturnMapClick();
	    }
	}
	
	private void handleReturnMapClick()
	{
		finish();
	}
	
}
